<%@ page pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@include file="/views/inc/taglib.inc" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="vote/taglib" prefix="vote"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@include file="/views/inc/static.inc" %>
	<link href="${HomeUrl}/views/css/qlist.css" rel="stylesheet" type="text/css"/>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>问卷列表</title>
</head>
<body>

<%@include file="/views/inc/user.inc" %>
<br />
<img src='${HomeUrl}/views/images/logo.jpg' width="1000"/>
<br />
	<div class="body">
		
		<%@include file="/views/inc/msgbox.inc" %>
		<%@include file="/views/inc/grouplist.inc" %>
		<div class = "bnav">
			<a href="${HomeUrl}">首页</a>&raquo;<a href="#">${listHead}</a>
		</div>
		
		<div class="leftpanel">
			<div class="listHead">
				<div class="listName">${listHead}</div>
				<div class="listCount">一共${qCount}个问卷</div>
				<div class="none"></div>
			</div>
			<ul class="listbody">
				<c:forEach items="${qList}" var="item">
				<li>
					<h3><a href="${HomeUrl }/questionnaire/questionnaire-${item.questionnaireId }.html">${item.questionnaireName}</a></h3>
					<div class="nodeRight"><div class="num">${item.questionnaireCount}</div>人参与</div>
					<div class="nodeBody">
					<h4>${item.questionnaireDescription}</h4>
					<span class="userName">${item.ownerName}</span>
					<span class="time">发起于：<fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${item.questionnaireTime}" /></span>
					</div>
					<div class="none"></div>
				</li>
				</c:forEach>
			</ul>
			<div class="pager"><vote:pager url="${pagerUrl}" count="${qCount}" curpage="${curpage}" itemPerPage="${itemPerPage}" /></div>
		</div>
		<div class="rightpanel">
			<div class="hotandlast_questionnaire">
			<%@include file="/views/inc/hotandlastest.inc"%></div>
		</div>
		<div class="none" />
	</div>
</body>
</html>